Enable_Mastodon_Apps\Mastodon_API D

Total Complexity 249
Dependencies 25
Dependents 10
Total lines 3,236
Lines of code 2,299
Logical lines of code 687
Comment lines 633
Methods 88
Properties 2

Methods 88

Method Rating Maintainability Complexity Lines of code
add_rest_routes()
D
9
1 1,078
get_patch_upload()
A
42 13 50
get_patch_data()
A
46 10 37
rewrite_rules()
A
36 6 85
ensure_required_scope()
A
52 10 22
api_get_post()
A
53 10 21
api_update_credentials()
A
44 8 46
api_apps()
A
47 7 34
reformat_error_response()
A
56 8 16
handle_upload()
S
51 7 24
api_accounts_lookup()
S
54 7 20
log_404s()
S
50 6 30
filter_non_entities()
S
52 6 29
api_edit_post()
S
49 6 29
api_submit_post()
S
50 6 28
remap_comment_id()
S
50 4 30
api_announcements()
S
45 3 43
api_account_relationships()
S
54 4 22
api_nodeinfo()
S
45 2 49
api_post_media()
S
56 4 18
api_update_media()
S
57 4 16
send_http_links()
S
59 4 13
remap_reblog_id()
S
53 3 24
public_api_permission()
S
56 3 19
rest_authentication_errors()
S
57 3 17
rest_request_before_callbacks()
S
63 4 9
remap_user_id()
S
59 3 15
register_custom_post_types()
S
47 1 43
api_reblog_post()
S
60 3 13
api_unreblog_post()
S
60 3 13
remap_url()
S
60 3 13
api_delete_post()
S
61 3 12
api_account()
S
61 3 11
logged_in_for_private_permission()
S
64 3 10
mapback_user_id()
S
64 3 10
validate_entity()
S
64 3 9
api_get_media()
S
66 3 7
maybe_get_remapped_url()
S
65 3 9
api_account_followers()
S
60 2 14
api_get_status_context()
S
61 2 13
logged_in_permission()
S
62 2 11
__construct()
S
58 1 17
register_taxonomy()
S
58 1 16
register_hooks()
S
58 1 15
allow_cors()
S
66 2 9
rest_json_encode_options()
S
68 2 7
get_body_from_php_input()
S
69 2 7
have_token_permission()
S
63 2 10
api_get_status_source()
S
65 2 9
api_favourite_post()
S
63 2 10
api_unfavourite_post()
S
63 2 10
get_mastodon_language()
S
70 2 6
maybe_get_remapped_reblog_id()
S
69 2 7
maybe_get_remapped_comment_id()
S
69 2 7
software_string()
S
65 2 9
api_favourites()
S
64 2 9
api_bookmarks()
S
64 2 9
activitypub_support_post_types()
S
76 1 4
query_vars()
S
77 1 4
id_as_strval()
S
80 1 3
required_scope()
S
74 1 5
default_option_mastodon_api_default_post_formats()
S
76 1 5
api_verify_credentials()
S
75 1 4
get_user_id_from_request()
S
79 1 3
api_timelines()
S
78 1 3
api_tag_timeline()
S
78 1 3
api_public_timeline()
S
78 1 3
api_accounts_search()
S
72 1 5
api_search()
S
79 1 3
api_push_subscription()
S
82 1 3
api_account_follow()
S
72 1 5
api_account_unfollow()
S
72 1 5
get_relationship()
S
71 1 5
api_notification_clear()
S
76 1 4
api_notification_dismiss()
S
76 1 4
api_notification_get()
S
79 1 3
api_notifications_get()
S
79 1 3
api_preferences()
S
68 1 7
set_last_error()
S
80 1 3
get_last_error()
S
80 1 3
api_account_statuses()
S
63 1 10
api_instance()
S
75 1 4
api_instance_v2()
S
75 1 4
api_instance_peers()
S
70 1 6
api_instance_rules()
S
75 1 4
api_instance_domain_blocks()
S
75 1 4
api_instance_extended_description()
S
75 1 4
api_instance_translation_languages()
S
75 1 4